package com.jfs.qy.service;

import com.jfs.qy.chain.component.LoginComponent;

import java.util.concurrent.CountDownLatch;

/**
 * @Description 向nvr定时发送心跳接口
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/11/4
 */
@FunctionalInterface
public interface HeartbeatService {
    /**
     * 发送心跳给nvr
     * @param second 发送心跳间隔
     * @param initialDelay 多少秒后开始执行
     */
    void sendBeat(long second, long initialDelay, CountDownLatch countDownLatch,LoginComponent loginComponent, LogoutService logoutService);
}
